home *** CD-ROM | disk | FTP | other *** search
/ Gold Medal Software 2 / Gold Medal Software Volume 2 (Gold Medal) (1994).iso / utils / floptool.arj / FLOPTOOL.EXE / README.DOC < prev    next >
Text File  |  1992-09-01  |  9KB  |  220 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.                         _______
  10.                    ____|__     |               (R)
  11.                 --|       |    |-------------------
  12.                   |   ____|__  |  Association of
  13.                   |  |       |_|  Shareware
  14.                   |__|   o   |    Professionals
  15.                 -----|   |   |---------------------
  16.                      |___|___|    MEMBER
  17.  
  18.  
  19.  
  20.            ABOUT SHAREWARE
  21.            
  22.                This package contains  the program named  FLOPTOOL.  It is
  23.           made by
  24.                Feico Nater, 
  25.                Beukweg 24, 
  26.                7556 DE Hengelo,
  27.                the Netherlands.
  28.  
  29.            
  30.                The system is available as shareware.  What  is shareware?
  31.           It  is software  which people pass  around, but  I, the author,
  32.           retain the rights to it.   Maybe you obtained the system from a
  33.           bulletin-board and  paid a few dollars for it,  but I don't get
  34.           a penny of it.   I expect to be paid by  you, because I make my
  35.           living out of making shareware software.
  36.             Therefore, if  you  like this  system  and  use it,  you  are
  37.           supposed to  register by  sending a  $15-check drawn  on a  US-
  38.           bank.   Sorry,  I  cannot accept  credit-cards.   The  address:
  39.           Feico  Nater Shareware, Beukweg  24, 7556 DE Hengelo, the Neth-
  40.           erlands.
  41.                Why register?  Well, it costs you  money.  But if you  do,
  42.           I will advise  you about further developments. Furthermore  you
  43.           will have  the right to  order later  versions for  only a  few
  44.           dollars and I will be willing to listen to your wishes.
  45.                And if you  don't like the system?   Well, throw it  away.
  46.           But you will like shareware, because it does not  let you pay a
  47.           lot of money for something you dislike afterwards.
  48.                Whether  you register  or not, you are  encouraged to pass
  49.           this  system around.  Give away copies  to your friends.  Howe-
  50.           ver, files  with the extension .NAR  should not  be given away.
  51.           The copies  you pass around  must be  complete and  unmodified,
  52.           but file-compression is allowed.  Any money  you collect should
  53.           be for  diskette, packing,  postage only and should  not exceed
  54.           five dollars.
  55.            
  56.           ABOUT THE AUTHOR
  57.  
  58.                I  have been  working with computers  since 1970.   I have
  59.           completed a  third-level degree  in computer-science.   I  have
  60.           been employed for many  years in a big company, making defense-
  61.           equipment, and  my colleagues  considered me  the most  skilled
  62.           programmer among  them.  However,  since the company went broke
  63.           (Gorbachev was  to  blame,  and he  did a  good  job) I  became
  64.           unemployed and started woring as a shareware author.
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.           The program FLOPTOOL reads  anything there is on a floppy disk,
  75.           regardless whether it is a DOS-disk or not.
  76.           The results  are writeen  as a  ASCII-file to  the fixed  disk.
  77.           The output file-name is FLOPTOOL.DAT.
  78.  
  79.           Rather that using  BIOS-functions FLOPTOOL addresses the  flop-
  80.           py-controller (NEC 765) and the DMA-controller  directly.  This
  81.           is needed to be  able to read  non-DOS disks.  However  it does
  82.           require a computer which is absolutely compatible
  83.  
  84.           Syntax: FLOPTOOL drive: /N /D /S /T:n /L:n
  85.  
  86.           Drive must be A or B.
  87.  
  88.           FLOPTOOL adjusts the  head on every cylinder, read both  sides,
  89.           finds  how   data   is  coded   and  writes   all  results   to
  90.           C:FLOPTOOL.DAT.
  91.  
  92.           There  are two ways of  recording: FM and  MFM.   The latter is
  93.           twice as compact.   The IBM-PC  uses MFM only.   FLOPTOOL finds
  94.           on every track whether FM was used.
  95.  
  96.           FLOPTOOL then writes onto C:FLOPTOOL.DAT:
  97.           CH=cylindernumber sidenumber, FM or MFM
  98.  
  99.           Then FLOPTOOL  reads  the  id-fields  of every  track.    Every
  100.           sector has  an id-field, which is  four bytes long.   With DOS-
  101.           disks these bytes are:
  102.           C: (cylinder) counted starting at 00.
  103.           H: (head,  or side of  the disk) on the  front-side 00, on  the
  104.           back-side 01.
  105.           R: (record or sector) counted starting at 01.
  106.           N: logarithm  of the  sectorlength, with  DOS-disks always  02,
  107.           that is 512 bytes.
  108.  
  109.           FLOPTOOL then writes onto C:FLOPTOOL.DAT:
  110.           CHRN=.. .. .. ..
  111.  
  112.           This is followed by the complete contents of the sector.
  113.  
  114.           While FLOPTOOL  is reading you  will see  an M or  an F on  the
  115.           screen for  every track,  dependent on  whether FM  or MFM  was
  116.           found.  If a track cannot be read, no letter appears.
  117.  
  118.           The following switches can be given when FLOPTOOL is started:
  119.  
  120.           /N  read id-fields  (CHRN) only, not  the contents  of the sec-
  121.           tors.
  122.           /D read even cylinders only, skip odd cylinders.
  123.           /S read  sectors one by one.   Sometimes  this produces exacter
  124.           results.   When this  switch is  not given  FLOPTOOL will  read
  125.           each track at once.
  126.           /T:n start at cylinder n (hexadecimal)
  127.           /L:n  all sectors  have  length n.    Use this  coding: 00=128,
  128.           01=256, 02=512, etc.
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.           The switches /S and /L are useless when /N is given.
  137.  
  138.  
  139.  
  140.  
  141.  
  142.  
  143.  
  144.           Further details.
  145.  
  146.           When showing  the contents of  the sectors FLOPTOOL  suppresses
  147.           lines which are equal.
  148.  
  149.           Floppy disks from another  computer kan be very different.  The
  150.           cylinders,  heads, sectors  may have  different  numbers.   The
  151.           IBM-PC will refuse to read such a disk, FLOPTOOL will do. 
  152.  
  153.           The last  byte  of the  id-field  is  supposed to  contain  the
  154.           length of the sector.   This value may be wrong, and then it is
  155.           hard to  find out  how long  the sector really  is.   So it  is
  156.           possible that FLOPTOOL reads too  many or too few bytes. If too
  157.           few bytes are read, the rest of the sector  remains unread.  If
  158.           too  many bytes  are read then  FLOPTOOL reads  the gap between
  159.           the sectors  and possibly fractions  of the following  sectors.
  160.           This  may cause  synchronisation-problems,  so that  the  bytes
  161.           seem damaged.
  162.           The /L  switch may  solve the  problem.   When  this switch  is
  163.           given, FLOPTOOL  will ignore the last  byte of  the id-veld and
  164.           uses the value from the switch in stead.
  165.  
  166.           With 5  1/4  inch  disks some  more  problems are  conceivable,
  167.           because these disks may have 40 or 80 cylinders.
  168.  
  169.           "True" 40-cylinder disk in 80-cylinder drive:
  170.           A "true" 40-cylinder disk  is a 40-cylinder disk which has been
  171.           formatted and written in a 40-cylinder drive.
  172.           FLOPTOOL will read the even cylinders easily.
  173.           On the odd cylinders FLOPTOOL will sometimes  read one, someti-
  174.           mes the other neighbouring track.
  175.  
  176.           "False" 40-cylinder disk in 80-cylinder drive:
  177.           A "false" 40-cylinder disk  is a 40-cylinder  schijf which  has
  178.           been formatted and written in a 80-cylinder drive.
  179.           FLOPTOOL will  find the  odd cylinders  unreadable, unless  the
  180.           disk has been used before.
  181.  
  182.           80-cylinder disk in 40-cylinder drive:
  183.           The odd cylinders are  out of reach, and the even cylinders may
  184.           be hard to read.
  185.  
  186.           "False" 40-cylinder disk in 40-cylinder drive:
  187.           This  disk may  also be  hard to  read, particularly  if it has
  188.           been used before.
  189.  
  190.           When reading  a 40-cylinder  disk in  a  80-cylinder drive  you
  191.           will find the /D switch convenient.
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.           The floppy-controller in the  IBM-PC is usually  a NEC uPD765A.
  200.           As far  as I  know a 7265 is  never used.   The data-pattern is
  201.           this:
  202.  
  203.                     MFM-mode                 FM-mode
  204.           GAP:      80 x 4E                  40 x FF
  205.           SYNC:     12 x 00                  6 x 00          765 only
  206.           IAM:      C2 C2 C2 FC              FC              765 only
  207.           GAP:      50 x 4E                  26 x FF         765 only
  208.           for every sector:
  209.           SYNC:     12 x 00                  6 x 00
  210.           IDAM:     A1 A1 A1 FE              FE
  211.           C H R N:  C H R N                  C H R N
  212.           CRC:      checksum                 checksum
  213.           GAP:      22 x 4E                  11 x FF
  214.           SYNC:     12 x 00                  6 x 00
  215.           DATA AM:  A1 A1 A1 FB              FB (of F8)
  216.                     (or A1 A1 A1 F8)
  217.           DATA:     data                     data
  218.           CRC:      checksum                 checksum
  219.           GAP:
  220.